#include <stdio.h>
#include <unistd.h>
#include <string.h>

int main()
{
    printf("this is a normal msg\n");
    fprintf(stdout, "this is also a normal log msg\n");
    const char *s1 = "this is a normal msg, write\n";
    write(1, s1, strlen(s1));
    
    fprintf(stderr, "this is also a error log msg\n");
    const char *s2 = "this is a error msg, write\n";
    write(2, s2, strlen(s2));
    return 0;
}
